<?php

include("includes/sqlEngine.php");
	
// SQL open connection
$mysql = '';
openDbConnection($mysql);

$sql= sprintf("SELECT
		*
	   FROM
	   	user as us;");

$result = mysql_query($sql,$mysql) OR Die("woot");

	print "Benutzer: <br>\n";

for($i = 0; $i < mysql_numrows($result); $i++){
	$row = mysql_fetch_assoc($result);
	
	print $row['username']." ".$row['firstname']." ".$row['lastname'];
	print "<br>";
	

}


// SQL close connection
closeDbConnection($mysql);
?>